// @ts-ignore
import request from '@/utils/request'


// 查询定时任务调度列表
export function list(data) {
  return request({
    url: '/eastjet-device-management/mel/list',
    method: 'post',
    data:data
  })
}

export function add(data) {
  return request({
    url: '/eastjet-device-management/mel/add',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}


export function update(data) {
  return request({
    url: '/eastjet-device-management/mel/update',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}       

export function updatestate(data) {
  return request({
    url: '/eastjet-device-management/mel/updateState',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}


export function deled(data) { 
  return request({
    url: '/eastjet-device-management/mel/delete',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data),
  })
}

export function getType(data) { 
    return request({
      url: '/eastjet-device-management/efd/listDeviceType',
      method: 'post',
      headers: {
        'Content-Type': 'application/json'
      },
      data: JSON.stringify(data),
    })
  }
  